// @Software: serve
// @File : usr_batch
// @Author : vince
// @Time : 2021/9/25 20:37
// @Description  请填写文件描述
package router

import (
	v1 "gintify/api/v1"
	"github.com/gin-gonic/gin"
)

func RegisterBatchRouter(Router *gin.RouterGroup){
	// 用户控制器
	c := v1.NewBatchController()

	// 用户路由组
	r := Router.Group("/batch")
	{
		r.POST("/excel", c.UploadExcel)
		r.POST("/plain", c.UploadPlain)
		r.POST("/execute", c.ExecuteBatch)
		r.GET("/download", c.DownloadBatch)
	}
}
